package gam.n1.conf;

import com.google.gson.Gson;
import org.bukkit.plugin.Plugin;
import org.jetbrains.annotations.NotNull;

import java.io.File;

public abstract class BaseConfig implements AConfig{
    protected String fP;
    protected final Gson gson;
    protected final Plugin plugin;
    public BaseConfig(@NotNull Plugin plugin,@NotNull String filePath){
        this.fP = filePath;
        this.plugin = plugin;
        this.gson = new Gson();
    }
    protected final File getBaseFile(Plugin plugin){
        File var1 = new File(plugin.getDataFolder(),fP);
        if (!var1.exists()){
            var1.mkdirs();
        }
        return var1;
    }
}
